/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jsf;

import com.controllers.CompanyDenominationController;
import com.entities.CompanyDenomination;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.inject.Named;
import javax.enterprise.context.RequestScoped;

/**
 *
 * @author ben
 */
@Named(value = "companyDenominationView")
@RequestScoped
public class CompanyDenominationView implements Serializable {

    /**
     * Creates a new instance of CompanyDenominationView
     */
    @EJB
    private CompanyDenominationController companyDenominationController;

    public List<CompanyDenomination> getAllCompanyDenominations() {
        return companyDenominationController.getAllCompanyDenominations();
    }

    public CompanyDenominationView() {
    }

    public CompanyDenominationController getCompanyDenominationController() {
        return companyDenominationController;
    }

    public void setCompanyDenominationController(CompanyDenominationController companyDenominationController) {
        this.companyDenominationController = companyDenominationController;
    }
}
